package com.runner.device;

import com.runner.services.GameServiceInterface;
import com.runner.utility.Constants;

public class DeviceIOS implements Device, Constants {
	private GameServiceInterface leaderboard;

	public DeviceIOS(GameServiceInterface leaderboard) {
		this.leaderboard = leaderboard;
	}

	@Override
	public void initControls() {
	}

	@Override
	public void updateDevice(float delta) {
	}

	@Override
	public void renderDevice() {
	}

	@Override
	public void submitLeaderboardScore(int score, LB_TYPE type) {
		switch(type){
		case RINGER1:
			leaderboard.submitScore(score, RINGER1_LB);
			break;
		case APRIL1:
			leaderboard.submitScore(score, APRIL1_LB);
			break;
		case APRIL2:
			leaderboard.submitScore(score, APRIL2_LB);
			break;
		case GEO1:
			leaderboard.submitScore(score, GEO1_LB);
			break;
		case GEO2:
			leaderboard.submitScore(score, GEO2_LB);
			break;
		case RINGER2:
			leaderboard.submitScore(score, RINGER2_LB);
			break;
		default:
			break;
		}

	}

	@Override
	public void showLeaderboardScore() {
		leaderboard.showScores();

	}

	@Override
	public void googleLogIn() {
		leaderboard.logIn();

	}

	@Override
	public void googleLogOff() {
		leaderboard.logOut();

	}

	@Override
	public void showAchievements() {
		leaderboard.showAchievements();

	}

	@Override
	public void unlockAchievements(String id) {
		leaderboard.unlockAchievements(id);

	}

	@Override
	public void menuScreen() {
		leaderboard.menuScreen();
	}

	@Override
	public void gameScreen() {
		leaderboard.gameScreen();
		
	}
	
	@Override
	public void loadoutScreen() {
		leaderboard.loadoutScreen();
		
	}
	
	@Override
	public void displayInterstitial() {
		leaderboard.displayInterstitial();
		
	}

}
